Los snippets de TypeScript se almacenan en %USERPROFILE%\AppData\Roaming\Code\User\snippets\typescript.json.
{
"log": {
"prefix": ["cl"],
"body": ["console.log(\"${1:Text}\");"],
"description": "Print text."
},
"test": {
"prefix": ["it"],
"body": ["it('${1:Test_name}', () => {\n ${2:Test_Code}\n expect($3).toBe($4)\n});"],
"description": "Basic test structure."
},
"test fakeAsync": {
"prefix": ["itf"],
"body": ["it('${1:Test_name}', fakeAsync(() => {\n ${2:Test_Code}\n expect($3).toBe($4)\n}));"],
"description": "Basic test structure with fakeAsync."
}
}
Snippets | TypeScript | Code | Atom